package com.nlx.notes.module.controller;

import com.nlx.notes.module.bean.vo.AccountVO;
import com.nlx.notes.module.service.IAccountsService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author nlx
 * @since 2024-12-15
 */
@RestController
@RequestMapping("/accounts")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class AccountsController {

    final IAccountsService accountsService;

    /**
     * 账户列表
     * @return  s
     */
    @GetMapping(value = "/account-list")
    public List<AccountVO> accountList(){
        return accountsService.accountList(1L);
    }


}
